package com.bsu.bsurokon;

import android.os.Bundle;

import com.bsu.bsurokon.scene.GameScene;
import com.bsu.bsurokon.scene.PhysicalScene;
import com.stickycoding.rokon.DrawPriority;
import com.stickycoding.rokon.RokonActivity;

public class BSURokon extends RokonActivity {
    public static final float GAME_WIDTH = 320f;
    public static final float GAME_HEIGHT = 480f;
//	public static final float GAME_WIDTH = 3.2f;
//	public static final float GAME_HEIGHT = 4.8f;
    private GameScene gameScene;
    private PhysicalScene physicalScene;
    @Override
    public void onCreate(Bundle savedInstanceState) {

    	debugMode();
    	normalMode();
    	forceFullscreen(); 
    	forcePortrait();
    	//forceLandscape();
    	setGameSize(GAME_WIDTH,GAME_HEIGHT);
    	setDrawPriority(DrawPriority.PRIORITY_VBO);
    	setGraphicsPath("textures/");
    	createEngine();
    	super.onCreate(savedInstanceState);    	
    }
    @Override
    public void onLoadComplete(){
    	gotoGameScene();
    }
    public void gotoGameScene(){
    	GameTextures.load();
//    	gameScene = new GameScene(this);
//    	setScene(gameScene);
    	physicalScene = new PhysicalScene();
    	setScene(physicalScene);
    }
}